package com.tandashi.springbootstudy01.study.thread;

public class TestCrossPrint {
    public static void main(String[] args) {
        CrossPrint crossPrint = new CrossPrint();

        for (int i = 0; i < 5; i++) {
            ThreadA threadA = new ThreadA(crossPrint);
            threadA.start();
            ThreadB threadB = new ThreadB(crossPrint);
            threadB.start();

        }
    }
}
